\ProvidesPackage{mycmd}
%green color
\definecolor{main1}{RGB}{0,120,2}
\definecolor{second1}{RGB}{230,90,7}
\definecolor{third1}{RGB}{0,160,152}
%cyan color
\definecolor{main2}{RGB}{0,175,152}
\definecolor{second2}{RGB}{239,126,30}
\definecolor{third2}{RGB}{120,8,13}
%blue color
\definecolor{main3}{RGB}{20,50,104}
\definecolor{second3}{RGB}{180,50,131}
\definecolor{third3}{RGB}{7,127,128}

%--------定义sagemath代码框 -----------------------------------------------
\newtcolorbox{SageMath}[2][]
{colback = red!5!white, colframe = blue!75!black, fonttitle = \bfseries,
	colbacktitle = blue!85!black, breakable,enhanced,
	attach boxed title to top center={yshift=-2mm},
	title=sagemath:#2,#1}
%-------定义sagemath代码框结束 added by lixiaofeng 2019.12.10----------------

%---------------------答案格式及控制变量定义 开始-----------------------------------------
%定义答案输出控制变量
\newboolean{printanswer}
%简答题  \jd 不要这个，但是为了不改习题，重定义jd
%\newcommand{\jd}[2][4]{\par	
%	\ifthenelse{\boolean{printanswer}}{
%		\begin{Answer}
%			答：\par
%			#2
%		\end{Answer}
%	}
%	{}  
%}	
\newcommand{\jd}[2][4]{
\begin{Answer}
    #2
\end{Answer}
}
\setboolean{printanswer}{true} %控制是否输出习题的答案
%---------------------------答案格式及控制变量定义 结束 added by lixiaofeng. 2019.12.10---------------------------------
